import { ExclamationCircleOutlined } from '@ant-design/icons-vue';
import { createVNode } from 'vue';
import { Modal } from 'ant-design-vue';

export function messageConfirm(msg,id){
  return Modal.confirm({
    title: msg,
    icon: createVNode(ExclamationCircleOutlined),
    content: '系统提示',
    okText: 'Yes',
    okType: 'danger',
    cancelText: 'No',
    onOk() {
      console.log('OK');
    },
    onCancel() {
      console.log('Cancel');
    },
  });
}
